package com.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.math.BigDecimal;
import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class Emplyee extends Human {
    private String jobNumber;
    private String position;
    private BigDecimal salary;

    public Emplyee(Long id, String username, Date birthday, String sex, String jobNumber, String position, BigDecimal salary) {
        super(id, username, birthday, sex);
        this.jobNumber = jobNumber;
        this.position = position;
        this.salary = salary;
    }
}
